<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        var input='1a23bc456def789';
        var rg=/\d+/g;
        var contentArray=input.match(rg);
        console.group('匹配到的内容');
        for(var index=0;index<contentArray.length;index++){
            console.log(contentArray[index]);
        }
        console.groupEnd();



    </script>

</head>
<body>

</body>
</html>